#ifndef QTIMSHOW_H
#define QTIMSHOW_H

#include <QLabel>
#include <QWidget>

namespace Ui {
class QtImShow;
}

class QtImShow : public QWidget
{
    Q_OBJECT

public:
    explicit QtImShow(QWidget *parent = nullptr);
    ~QtImShow();
    QLabel *getLabel();

protected:
    void mouseMoveEvent(QMouseEvent *event) override;
    void mousePressEvent(QMouseEvent *event) override;
    void mouseReleaseEvent(QMouseEvent *event) override;
private:
    Ui::QtImShow *ui;
    QPoint lastMousePosition;
    bool isDragging;

};

#endif // QTIMSHOW_H
